package com.dfrz.ch06;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/13 10:35
 * 描述:
 */
public class OrderSearchTest {
    public static void main(String[] args) {
        String[] ss={"刘大发","王大福","胖大海","张三丰","王胖子"};

        for (int i=0;i<ss.length;i++){

            if (ss[i].equals("张三丰")){
                System.out.println("张三丰在数组第"+(i+1));
                break;
            }
        }

    }
}
